/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.springtree.spectrum.visa.persistence.constant.properties;

import java.util.Properties;

/**
 *
 * @author Ricardo
 */
public class PropertiesLoader extends Properties{
    private static final long serialVersionUID = -4952714784195696015L;
	private static PropertiesLoader instance = null;
	
	private PropertiesLoader(){
		try {
        	this.load(this.getClass().getClassLoader().getResourceAsStream("spectrum.properties"));
        } catch (Exception e) {
           System.out.print("Error al cargar el PropertiesLoader " + e);
        }
	}
	
	public static PropertiesLoader getInstance(){
		if(instance == null){
			instance = new PropertiesLoader();
		}
		return instance;
	}

}
